package com.lfz.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan("com.lfz.demo.dao")
@EntityScan(basePackages = "com.lfz.demo.entity")
@EnableScheduling // 启用定时任务
@EnableCaching  // 启用缓存
public class PopulationManagementApplication {
    public static void main(String[] args) {
        SpringApplication.run(PopulationManagementApplication.class, args);

//        Logger logger = LoggerFactory.getLogger(PopulationManagementApplication.class);

    }
}
